package com.xue.action;

/**
 * 
 * @author 北京八维博大科技 薛建新
 * @date 2023年1月4日 14:10:25
 * @Copyright 北京八维博大科技
 */
public class CropperOption {
	
	public static int CANVAS_W = 940;// pad前端画布宽
	public static int CANVAS_H = 700;// pad前端画布高

	private String imgId; // 图像id
	private Double imgRotate; // 旋转
	// private Double imgScale; // 缩放
	// private Integer imgX; // 被裁剪图像左上角x
	// private Integer imgY; // 被裁剪图像左上角y
	private Integer imgW; // 被裁剪图像宽
	private Integer imgH; // 被裁剪图像高

	private Integer x; // 裁剪框左上角x
	private Integer y; // 裁剪框左上角y
	private Integer w; // 裁剪框宽
	private Integer h; // 裁剪框高

	public String getImgId() {
		return imgId;
	}

	public void setImgId(String imgId) {
		this.imgId = imgId;
	}

	public Double getImgRotate() {
		return imgRotate;
	}

	public void setImgRotate(Double imgRotate) {
		this.imgRotate = imgRotate;
	}


	public Integer getX() {
		return x;
	}

	public void setX(Integer x) {
		this.x = x;
	}

	public Integer getY() {
		return y;
	}

	public void setY(Integer y) {
		this.y = y;
	}

	public Integer getW() {
		return w;
	}

	public void setW(Integer w) {
		this.w = w;
	}

	public Integer getH() {
		return h;
	}

	public void setH(Integer h) {
		this.h = h;
	}


	public Integer getImgW() {
		return imgW;
	}

	public void setImgW(Integer imgW) {
		this.imgW = imgW;
	}

	public Integer getImgH() {
		return imgH;
	}

	public void setImgH(Integer imgH) {
		this.imgH = imgH;
	}

	@Override
	public String toString() {
		return String.format("CropperOption [imgId=%s, rotate=%s,   imgW=%s, imgH=%s, x=%s, y=%s, w=%s, h=%s]", imgId,
				imgRotate, imgW, imgH, x, y, w, h);
	}

}
